#bin/bash
export ORI_ENV="`env`"

app="simple-http-1.0.0-all"
JAVA_HOME="/data/app/web/argus-pro/jdk-21.0.2"

${JAVA_HOME}/bin/java -version
echo "-------"
pid=`ps -ef|grep ${app} | grep java |grep -v grep|awk '{print $2}'`
echo kill $pid
echo "-------"
kill -9 `ps -ef|grep ${app} | grep java |grep -v grep|awk '{print $2}'`
echo "-------"

ulimit -n 102400

nohup ${JAVA_HOME}/bin/java -Dfile.encoding=UTF-8 -jar ${app}.jar > simple-http.log &

